<template>
    <el-container>
        <el-header></el-header>
        <el-container style="min-height: calc(100vh - 60px)">
            <el-aside width="200px">
                <Nav></Nav>
            </el-aside>
            <el-main>
                <el-card shadow="hover">
                    <router-view/>
                </el-card>
            </el-main>
        </el-container>
    </el-container>
</template>

<style>
    .el-header, .el-footer {
        background-color: #B3C0D1;
        color: #333;
        text-align: center;
        height: 60px;
    }

    .el-aside {
        background-color: #D3DCE6;
        color: #333;
        text-align: center;
        min-height: 200px;
    }

    .el-main {
        background-color: #E9EEF3;
        color: #333;

        min-height: 160px;
    }

    /*body > .el-container {
        margin-bottom: 40px;
    }*/

    .el-container:nth-child(5) .el-aside,
    .el-container:nth-child(6) .el-aside {
        min-height: 260px;
    }

    .el-container:nth-child(7) .el-aside {
        line-height: 320px;
    }
</style>

<script>
    import Nav from '@/page/index/component/Nav'

    export default {
        name: 'Index',
        components: {Nav}
    }
</script>
